package com.nextbusmn.server.dataobjects;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class ShapeData implements NextBusData {

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;
	
	@Persistent
	private int shapeID;
	
	@Persistent
	private double shapePtLat;
	
	@Persistent
	private double shapePtLon;
	
	@Persistent
	private long shapePtSequence;
	
	public ShapeData(int shapeID, double shapePtLat, double shapePtLon, long shapePtSequence) {
		this.shapeID = shapeID;
		this.shapePtLat = shapePtLat;
		this.shapePtLon = shapePtLon;
		this.shapePtSequence = shapePtSequence;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public int getShapeID() {
		return shapeID;
	}

	public void setShapeID(int shapeID) {
		this.shapeID = shapeID;
	}

	public double getShapePtLat() {
		return shapePtLat;
	}

	public void setShapePtLat(double shapePtLat) {
		this.shapePtLat = shapePtLat;
	}

	public double getShapePtLon() {
		return shapePtLon;
	}

	public void setShapePtLon(double shapePtLon) {
		this.shapePtLon = shapePtLon;
	}

	public long getShapePtSequence() {
		return shapePtSequence;
	}

	public void setShapePtSequence(long shapePtSequence) {
		this.shapePtSequence = shapePtSequence;
	}

}
